package com.zhentao.admin.vo;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ContentStyle;
import com.alibaba.excel.enums.poi.HorizontalAlignmentEnum;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.zhentao.admin.pojo.ReturnStatusConverterSex;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
public class StudentVo implements Serializable {
    /**
     * 用户编号
     */
    @ExcelIgnore
    private Integer userId;

    /**
     * 账号
     */
    @ExcelProperty(value = "账号", index = 0)
    @ContentStyle(horizontalAlignment = HorizontalAlignmentEnum.CENTER)
    private String username;

    /**
     * 密码
     */
    @ExcelIgnore
    private String password;

    /**
     * 用户名
     */
     @ExcelProperty(value = "用户名", index = 1)
     @ContentStyle(horizontalAlignment = HorizontalAlignmentEnum.CENTER)
    private String nickname;

    /**
     * 头像
     */
    @ExcelIgnore
    private String avatar;

    /**
     * 班级外键
     */
    @ExcelIgnore
    private Integer classIdStudent;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ContentStyle(horizontalAlignment = HorizontalAlignmentEnum.CENTER)
    @ExcelIgnore
    private Date createTime;

    /**
     * 修改时间
     */
     @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
     @ContentStyle(horizontalAlignment = HorizontalAlignmentEnum.CENTER)
     @ExcelIgnore
    private Date updateTime;

    /**
     * 状态 0:正常 1:禁用
     */
     @ExcelProperty(value = "状态", index = 2,converter = ReturnStatusConverterSex.class)
     @ContentStyle(horizontalAlignment = HorizontalAlignmentEnum.CENTER)
    private Integer state;

    /**
     * 手机号
     */
      @ExcelProperty(value = "手机号", index = 3)
      @ContentStyle(horizontalAlignment = HorizontalAlignmentEnum.CENTER)
    private String phone;

    /**
     * 市场部外键
     */
    @ExcelIgnore
    private Integer mdId;
    /**
     * 班级主键
     */
    @ExcelIgnore
    private Integer classId;

    /**
     * 班级名称
     */
     @ExcelProperty(value = "班级名称", index = 4)
     @ContentStyle(horizontalAlignment = HorizontalAlignmentEnum.CENTER)
    private String className;

    /**
     * 专业阶段外键
     */
    @ExcelIgnore
    private Integer levelId;

    /**
     * 带班老师外键
     */
    @ExcelIgnore
    private Integer teacherId;
    /**
     * 市场部主键
     */
    @ExcelIgnore
    private Integer id;

    /**
     * 市场部名称
     */
     @ExcelProperty(value = "市场部名称", index = 5)
     @ContentStyle(horizontalAlignment = HorizontalAlignmentEnum.CENTER)
    private String name;

    /**
     * 阶段编号
     * */
    @ExcelIgnore
    private Integer idLevel;

    /**
     * 阶段名称
     * */
    @ExcelProperty(value = "阶段名称", index = 9)
    private String levelName;

    /**
     * 性别
     * */
     @ExcelProperty(value = "性别", index = 6,converter = ReturnStatusConverter.class)
     @ContentStyle(horizontalAlignment = HorizontalAlignmentEnum.CENTER)
    private Integer sex;

    /**
     * 邮箱
     * */
     @ExcelProperty(value = "邮箱", index = 7)
     @ContentStyle(horizontalAlignment = HorizontalAlignmentEnum.CENTER)
    private String email;
    /**
     * 学号
     * */
     @ExcelProperty(value = "学号", index = 8)
     @ContentStyle(horizontalAlignment = HorizontalAlignmentEnum.CENTER)
    private String studentId;
}
